@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/business/pinChannel/pinChannel_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="pinChannelForm" lay-filter="pinChannelForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                <input name="pinChannelId" type="hidden"/>
                <div class="layui-form-item">
                    <label class="layui-form-label">渠道名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="channelName" name="channelName" placeholder="请输入渠道名称" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">接口请求地址<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="apiUrl" name="apiUrl" placeholder="请输入接口请求地址" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">

                    <label class="layui-form-label">请求方式<span style="color: red;">*</span></label>
                    <div class="layui-input-inline">
                        <select name="apiType" lay-filter="aihao">
                            <option value="get">get</option>
                            <option value="post">post</option>
                        </select>
                    </div>

                </div>
                <div class="layui-form-item" >
                    <fieldset class="layui-elem-field">
                        <legend>固定参数列表</legend>
                        <div class="layui-field-box">
                            <table class="layui-table" id="channelParamsTable" lay-filter="channelParamsTable"></table>
                        </div>
                    </fieldset>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">通道标识<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="channelCode" name="channelCode" placeholder="请输入通道标识" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="remark" name="remark" placeholder="请输入备注" type="text" class="layui-input" lay-verify="required" required/>
                        <input id="categoryId" name="categoryId" placeholder="请输入" value="${categoryId}" type="hidden"/>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script type="text/html" id="paramTableBar">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>

<script type="text/html" id="paramToolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="insertTable">新增</button>
    </div>
</script>
@}
